package com.caiheng.api.dao.wxuser;

import com.caiheng.api.dao.BaseDao;
import com.caiheng.api.entity.wxuser.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper extends BaseDao<User> {

    List<User> selectByShopId(@Param("shop_id") Integer shop_id, @Param("user_id") Integer user_id,
                                 @Param("offset") Integer offset, @Param("pageSize") Integer pageSize,
                                 @Param("begin_time") Date begin_time, @Param("end_time") Date end_time);

    List<User> selectNearbyUserList(@Param("map") Map<String,Object> map, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
}
